import { fullUrl } from '/@/utils/common'

export const onPlayAudio = (path: string) => {
    if (!path) return

    const audio = new Audio(fullUrl(path))

    audio.play().catch((error) => {
        console.error('Failed to play notification sound:', error)
    })
}
